package com.demo.designpattern.observer;

import java.util.Observable;

/**
 * Created by hunter
 *
 * @Description 老师-被观察者, 使用内置的接口
 */
public class DefaultTeacher extends Observable {

    public void doSomeThing() {
        System.out.println("使用内置接口的老师发布了作业");
        setChanged();
        notifyObservers();
    }
}
